/* 
 * File:   lcd19264.h
 * Author: Administrator
 */

#ifndef LCD19264_H
#define	LCD19264_H

#include "ascii.h"
#include "MKE06Z4.h"
#include "image.h"
#include "cn_16_16_index.h"

#ifdef	__cplusplus
extern "C" {
#endif

#define LCD19264_ENABLE                         (1)
#define LCD_WAIT_TIME_OUT_LIMIT                 (5)
#define LCD_WAIT_TIME_OUT_CYCLE_CNT             (2000)	

typedef enum
{
	FONT16 = 2,
	FONT24 = 3,
	FONT32 = 4
} FontType;
	
void LCD19264Init(void);
void LCD19264DispAnti(void);
void LCD19264DispHalfEn(void);
void LCD19264DispHalfDis(void);
void LCD19264DispNormal(void);
	
/******************************************************************************
 * Used to display font on your LCD
 * If you do not use these functions, you can delet it and it's sources in the LCD19264.c
 *****************************************************************************/
void LcdFontSet(FontType Font);
void LCD19264PutCh(unsigned char StartPage,unsigned char StartCol,unsigned char DispCh);            //the col must be multipled of 8
void LCD19264Puts(unsigned char StartPage,unsigned char StartCol,unsigned char *DispStr);        //the col must be multipled of 8
void LCD19264PutCN(unsigned char StartPage,unsigned char StartCol,const unsigned char *pCN);         //the dots must be 16*16
void LCD19264PutCNs(unsigned char Page,unsigned char Col,unsigned char Amount, const unsigned char *pCN);
void LCD19264ImgDisp(unsigned char StartPage ,unsigned char StartCol ,unsigned char Wide ,unsigned char PageHigh ,const unsigned char *pImg);      // Omnipotent

/******************************************************************************/
/******************************************************************************
 * Standalone application
 * If you do not use these functions, you can delet it and it's sources in the LCD19264.c
 *****************************************************************************/

void LCD19264StartLineAll(unsigned char Line);
void LCD19264StartLine(unsigned char U,unsigned char Line);
void LCD19264ScreenFill(unsigned char Data);


/******************************************************************************/
#ifdef	__cplusplus
}
#endif

#endif	/* LCD19264_H */

